{% extends 'base.html' %}

{% block my_head %}
    <title>全部帖子</title>
{% endblock %}

{% block context %}
    <div class="container">
        <h2 style="text-align: center">帖子</h2>
    </div>
    <ul>
        {% for post in posts %}
            <a style="text-decoration: none;color: #0f0f0f"
               href="{% url 'show_post_one' postID=post.id %}">
                标题：<span>{{ post.title }}</span>
                <li>{{ post.content }}</li>
            </a>
            <br>
        {% endfor %}
    </ul>
{% endblock %}
